<?php $this->load->view('admin_home/_header') ?>
<?php $this->load->view('message') ?>
<script tyep="text/javascript">
    $().ready(function(){
        $("#teacher_li").addClass("active"); 
    });
</script>

<div class="container">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">信息</h3>
        </div>
        <div class="panel-body">
            <fieldset>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">班级:</label>
                        <div class="col-lg-10">
                            <p ><?= $logic_class['name'] ?></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">课程名称:</label>
                        <div class="col-lg-10">
                            <p ><?= $logic_class['big_lecture_name'] ?></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">人数:</label>
                        <div class="col-lg-10">
                            <p><?= count($students) ?></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"></label>
                        <div class="col-lg-10">
                            <a class="btn btn-primary" href="<?php echo site_url('Admin_teacher/check_logic_class') . '/' . $teacher_id ?>">返回</a>
                        </div>              
                    </div>
                </fieldset>

        </div>
    </div>
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">学生列表</h3>
        </div>
        <div class="panel-body">
            <table class="table table-striped table-hover ">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>姓名</th>
                        <th>学号</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $index = 1; ?>
                    <?php foreach ($students as $item) : ?>
                    <tr>
                        <td>
                            <?php echo $index++; ?></td>
                        <td>
                            <?php echo $item['name'] ?>
                        </td>
                        <td>
                            <?php echo $item['student_id'] ?></td>
                    </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>

        </div>
    </div>
</div>
<?php $this->load->view('admin_home/_footer') ?>